package com.xh.poster.core.impl;


import com.xh.model.request.PreviewRequest;
import com.xh.poster.core.abst.Poster;

/**
 * @author yangXS
 * @Date 2020/11/21
 * @since 1.0
 */
public interface PosterTemplate<E> {

    /**
     * 基于注解的绘制
     *
     * @param content content 类
     * @return 注解绘制
     * @throws IllegalAccessException ex
     */
    Poster annotationDrawPoster(E content) throws IllegalAccessException;

    /**
     * 基于参数的绘制方法
     */
    Poster paramsDrawPoster(PreviewRequest request) throws IllegalAccessException;

}
